package com.crm.pojo.common;

import lombok.Data;

import java.util.List;

@Data
public class DictResult {
    private String msg;
    private Integer code;
    private List data;

    public static DictResult success(List data) {
        DictResult dictResult = new DictResult();
        dictResult.setCode(200);
        dictResult.setMsg("操作成功");
        dictResult.setData(data);
        return dictResult;
    }
}
